package com.boot.notes.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

/**
 * 用户注册成功后的Event事件
 *
 * @Description:
 * @Author: mkq
 * @Date: 2021/10/8 14:27
 **/
public class RegisterEvent extends ApplicationEvent {

    private static final Logger logger = LoggerFactory.getLogger(RegisterEvent.class);

    private String message;

    private String moblie;

    private Long userId;

    public RegisterEvent(Object source, String message, String moblie, Long userId) {
        super(source);
        this.message = message;
        this.moblie = moblie;
        this.userId = userId;
    }

    public RegisterEvent(String message, String moblie, Long userId) {
        super(new Object());
        this.message = message;
        this.moblie = moblie;
        this.userId = userId;
    }

    public RegisterEvent() {
        super(new Object());
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMoblie() {
        return moblie;
    }

    public void setMoblie(String moblie) {
        this.moblie = moblie;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
